import { createRouter, createWebHashHistory, Router } from "vue-router";
import routes from './generate';
import intercept from "./intercept";
const router: Router = createRouter({
  history: createWebHashHistory(), // 配置路由模式: hash模式
  routes: [
    {
      path: "/",
      redirect: '/home'
    },
    ...routes,
  ],
});
intercept(router);
export default router;
